import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/article/Index'
import ArticleDetails from '@/components/article/ArticleDetails'
import QuestionList from '@/components/talk/QuestionList'
import QuestionDetail from '@/components/talk/QuestionDetail'
import PutQuestion from '@/components/talk/PutQuestion'
import Login from '@/components/user/Login'
import Register from '@/components/user/Register'
import ForgetPassword from '@/components/user/ForgetPassword'
import UserCenter from '@/components/user/UserCenter'
import UserComment from '@/components/user/UserComment'
import UserMsg from '@/components/user/UserMsg'
import UserPassword from '@/components/user/UserPassword'
import BraceHome from '@/components/plan/BraceHome'
import BraceTimeList from '@/components/plan/BraceTimeList'
import DoctorList from '@/components/plan/DoctorList'
import BraceType from '@/components/plan/BraceType'
import SeleteBrace from '@/components/plan/SeleteBrace'
import NewBrace from '@/components/plan/NewBrace'
import SettingBrace from '@/components/plan/SettingBrace'
import AddEvent from '@/components/plan/AddEvent'
import EditEvent from '@/components/plan/EditEvent'
import EventDetails from '@/components/plan/EventDetails'

Vue.use(Router)

export default new Router({
	routes: [
		//首页（新闻资讯）
		{
			path: '/',
			name: 'Index',
			component: Index
		},
		//文章资讯详情
		{
			path: '/article/:aid',
			name: 'ArticleDetails',
			component: ArticleDetails
		},
		//医患交流问题列表页
		{
			path: '/talk',
			name: 'QuestionList',
			component: QuestionList
		},
		//医患交流提出问题页
		{
			path: '/put_question',
			name: 'PutQuestion',
			component: PutQuestion
		},
		//医患交流问题详情页
		{
			path: '/talk/:qid',
			name: 'QuestionDetail',
			component: QuestionDetail
		},
		//登录页
		{
			path: '/login',
			name: 'Login',
			component: Login
		},
		//注册页
		{
			path: '/register',
			name: 'Register',
			component: Register
		},
		//找回密码页
		{
			path: '/forget_password',
			name: 'ForgetPassword',
			component: ForgetPassword
		},
		//用户中心页
		{
			path: '/user_center',
			name: 'UserCenter',
			component: UserCenter
		},
		//我的评论页
		{
			path: '/user_comment',
			name: 'UserComment',
			component: UserComment
		},
		//个人信息页
		{
			path: '/user_msg',
			name: 'UserMsg',
			component: UserMsg
		},
		//账户安全页
		{
			path: '/user_password',
			name: 'UserPassword',
			component: UserPassword
		},
		//选择牙套类型
		{
			path: '/brace_type',
			name: 'BraceType',
			component: BraceType
		},
		//选择牙套
		{
			path: '/selete_brace/:cid',
			name: 'SeleteBrace',
			component: SeleteBrace
		},
		//创建牙套计划
		{
			path: '/new_brace/:bid',
			name: 'NewBrace',
			component: NewBrace
		},
		//修改牙套计划
		{
			path: '/set_brace/:bid',
			name: 'SettingBrace',
			component: SettingBrace
		},
		//医生列表
		{
			path: '/doctor_list',
			name: 'DoctorList',
			component: DoctorList
		},
		//牙套计划详情页
		{
			path: '/brace_home',
			name: 'BraceHome',
			component: BraceHome
		},
		//牙套计划全部周期页
		{
			path: '/brace_time_list/:pid',
			name: 'BraceTimeList',
			component: BraceTimeList
		},
		//牙套事件添加
		{
			path: '/add_event/:pid',
			name: 'AddEvent',
			component: AddEvent
		},
		//牙套事件修改
		{
			path: '/edit_event/:eid',
			name: 'EditEvent',
			component: EditEvent
		},
		//牙套事件详情
		{
			path: '/event_details/:eid',
			name: 'EventDetails',
			component: EventDetails
		},
		
	]
})